import React, { Component } from 'react'
import { Consumer } from './index.js'
export default class Sun extends Component {
  render() {
    return (
      <div>
        <h4>我是孙组件</h4>
        <Consumer>
          {(value) => <div>{value}</div>}
        </Consumer>
      </div>
    )
  }
}
